package com.graduate.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.graduate.common.entity.Reserve;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduate.common.exception.UserException;
import com.graduate.common.vo.ReserveVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zfy
 * @since 2021-05-09
 */
public interface IReserveService extends IService<Reserve> {

    void reserveHouse(Reserve reserve) throws UserException;

    ReserveVo selectReserveByPhoneOrName(String telephone, String realName);

    IPage<ReserveVo> selectReservePage(Map<String, Object> map);
}
